<template>
  <a-modal width="80vw" v-model:visible="visible" title="免押详情" ok-text="关闭" hide-cancel @ok="visible = false">
    <ZhimaDepositFree v-if="visible" :orderId="orderId" :showOperateBtn="showOperateBtn" />
  </a-modal>
</template>

<script setup>
  import { ref } from 'vue'
  import ZhimaDepositFree from './zhima-deposit-free.vue'

  const props = defineProps({
    showOperateBtn: {
      type: Boolean,
      default: true,
    },
    orderId: {
      type: Number,
      default: 0,
    },
  })

  const visible = ref(false)

  const show = () => {
    visible.value = true
    console.log(props.orderId)
  }
  defineExpose({
    show,
  })
</script>
